kbuild: Make the toolchain variables easily overwritable
authorBastian Blank <waldi@debian.org>
Sun, 22 Feb 2009 14:39:35 +0000 (15:39 +0100)
committerBen Hutchings <benh@debian.org>
Thu, 27 Jul 2023 17:28:01 +0000 (18:28 +0100)
commit684a732809c51845a46c9c299ec4c5fbd5d7be21
tree6dc96673ac0d89a6a467fc425f91cd1a4c5b6c1b
parent3535979c8b1aa854c6cd47470b0adb085964bfd2
kbuild: Make the toolchain variables easily overwritable

Forwarded: not-needed

Allow make variables to be overridden for each flavour by a file in
the build tree, .kernelvariables.

We currently use this for ARCH, KERNELRELEASE, CC, and in some cases
also CROSS_COMPILE, KCFLAGS.

This file can only be read after we establish the build tree, and all
use of $(ARCH) needs to be moved after this.

[bwh: Updated for 5.3: include .kernelvariables from current directory
 rather than using undefined $(obj).]

Gbp-Pq: Topic debian
Gbp-Pq: Name kernelvariables.patch
Makefile